package com.iocStu.pojo;

import org.springframework.beans.factory.annotation.Autowired;

public class People0 {
    @Autowired
    private Cat0 cat0;

    @Autowired
    private Dog0 dog0;

    private String name;
    private int age;

    public Cat0 getCat0() {
        return cat0;
    }

    public Dog0 getDog0() {
        return dog0;
    }

    public String getName() {
        return name;
    }

    public int getAge() {
        return age;
    }

    @Override
    public String toString() {
        return "People0{" +
                "cat0=" + cat0 +
                ", dog0=" + dog0 +
                ", name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
